import 'package:path/path.dart';
import 'package:sqflite_sqlcipher/sqflite_sqlcipher.dart';

export 'dart:io' hide sleep;

/// Usage: await sleep(500);
Future sleep(int milliseconds) => Future.delayed(Duration(milliseconds: milliseconds));

/// Get file path.
Future<String> getFilePath(String path, String dbName) async {
  var filePath = isOhos() ? join(await getDatabasesPath() + '/rdb', dbName) : path;
  print(filePath);
  return filePath;
}
